import request from '@/utils/request'

const api_name = '/oa/oaProcessType'

export default  {
  findAll(){
    return request({
      url: `${api_name}/findAll`,
      method: 'get'
    })
  },
  /**
   * 分页获取
   */
  getPageList(pageNo,pageSize,searchObj){
    return request({
      url: `${api_name}/getPage/${pageNo}/${pageSize}`,
      method: `get`,
      params: searchObj
    })
  },
  save(data){
    return request({
      url: `${api_name}/save`,
      method: `post`,
      data: data
    })
  },
  update(data){
    return request({
      url: `${api_name}/update`,
      method: `put`,
      data: data
    })
  },
  removeById(id){
    return request({
      url: `${api_name}/delete/${id}`,
      method: `delete`
    })
  }
}
